Import Glass job descriptions file
This will import Non catalogue Glass job descriptions globally into ViSN. These descriptions will be displayed for all suppliers in ViSN.
Fields
| Field Name | Description | Datatype | Validation | Max length | Mandatory | Example |
|---|---|---|---|---|---|---|
| ViSN | Unique Id issued by ViSN | string | A-Z a-z & 0-9 | 20 | Yes | G015 |
| Repair Description | Brief description of the job item | string | A-Z a-z & 0-9,Special chars | 100 | Yes | Rear vent (right) |
| Repair Type | GLASS | string | only ‘GLASS’ is allowed | NA | Yes | GLASS |
Importing a file
Preparation
-
Create a new branch with Jira task number in the branch name
-
Delete all the files in importFiles folder
-
Create a folder with the current sprint number
-
Copy the file that needs to be imported
-
Go to
package.json, find the linevalidate:glassRepairDescriptions -
Modify
--filewith the relative path of the file -
Save package.json
Validating locally
-
In a terminal run
npm run validate:glassRepairDescriptions -
If there are no errors, push the code
Validating in workflow
-
Go to Action of Import-manger
-
Find
<Environment> - on-demand-import -
Select the branch that was created for this import
-
Enter script name as
validate:glassRepairDescriptions -
Leave Overrides empty
Importing the file
-
If the validation has passed
-
Go to Action of Import-manger
-
Find
<Environment> - on-demand-import -
Select the branch that was created for this import
-
Enter script name as
import:glassRepairDescriptions -
Enter
--persistin Overrides field
Testing
-
The glass job descriptions will be stored in Firestore, under
/config/lookUp/repairDescriptions/. -
New documents will be added in Typesense > repairDescriptionsIndex.
-
The imported glass job descriptions should appear in the search dropdown while adding/ amending a Glass jobline.
Status: Accepted
Category: Protected
Authored By: Sohan on Jul 15, 2024